<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>班级主显示界面</title>
</head>
<body>

<table border="1" width="60%" cellspacing="0" style="text-align: center">
    <thead>
    <tr>
        <th>班级名称</th>
        <th>创建日期</th>
        <th>带班老师</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="class:${pageInfo.list}">
        <td th:text="${class.className}"/>
        <td th:text="${class.creatDate}"/>
        <td th:text="${class.teacher}"/>
        <td>
            <a style="margin: 5px" th:href="@{/class/del(id=${class.classId})}">删除</a>
            <a style="margin: 5px" th:href="@{/class/findById(id=${class.classId})}">修改</a>
        </td>
    </tr>
    </tbody>
</table>
<a style="margin: 10px"
   th:each="i:${#numbers.sequence(1,pageInfo.pages)}"
   th:text="${i}"
   th:href="@{/class/findAllByPage(pageNo=${i})}"></a>
<hr>

<div>
    <a href="/html/class/add.html">点击添加</a>
</div>


</body>
</html>